package cn.wolfcode.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.EmployeeQueryObject;

public interface EmployeeMapper {
	void insert(Employee entity);
	void update(Employee entity);
	void delete(Long id);
	Employee selectById(Long id);
	Employee selectByEmail(String email);
	
	List<Employee> selectByDepartId(Long deptId);
	
	List<Employee> selectAll();
	
	Employee selectRoleByEmployeeId(Long id);
	
	List<Employee> selectForList(EmployeeQueryObject qo);
	
	List<Employee> querySellersForNotId(@Param("id") Long id);
}
